//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:43:59 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

namespace Kylin.Wiki.Model.Entity
{
    ///<summary>
    ///sys_Project_Document
    ///</summary>
    [Table("sys_document")]
    public class Document : BaseEntity
    {

        /// <summary>
        /// 文档ID
        /// </summary>
        [Key]
        [Required]
        [DisplayName("文档ID")]
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [DisplayName("父级ID")]
        [Column("pid")]
        public int? PID { get; set; }
          
        /// <summary>
        /// 文档名称
        /// </summary>
        [DisplayName("文档名称")]
        [Column("document_name")]
        public string DocumentName { get; set; }


        /// <summary>
        /// 标签
        /// </summary>
        [DisplayName("标签")]
        [Column("tag")]
        public string Tag { get; set; }


        /// <summary>
        /// 1 page 2 dir
        /// </summary>
        [DisplayName("1 page 2 dir")]
        [Column("type")]
        public int? Type { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [DisplayName("路径")]
        [Column("path")]
        public string Path { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        [Column("order_num")]
        public int? OrderNum { get; set; }
         

    }
}
